package com.composetest.core.model

import kotlinx.serialization.Serializable

/**
 * 商品模型
 */
@Serializable
data class Product(
    val id: String,
    val title: String,
    val price: Int,
    val originPrice: Int?,
    val sale: Int?,
    val stocksCount: Int?,
    val number: String? = null,
    val icon: String? = null,
    val icons: List<String>? = emptyList(),
    val video: String? = null,
    val keyword: String? = null,
    val detail: String? = null,
    val highlight: String? = null,
    val commentsCount: Int = 0,
    val commentsRate: Float = 0.0f
)

object ProductData {
    val products = listOf(
        Product(
            id = "1",
            title = "TCL 408升十字对开双开四开门智能一级能效风冷无霜大容量",
            price = 100,
            originPrice = 199,
            sale = 1,
            stocksCount = 2,
            commentsCount = 99
        ), Product(
            id = "1",
            title = "唐杉开车防困神器长途驾驶防疲劳提神学生防打瞌睡提醒器汽车用品",
            price = 10,
            originPrice = 19,
            sale = 1,
            stocksCount = 2,
            commentsCount = 99
        ), Product(
            id = "1",
            title = "小天才电话手表Q2A长续航儿童手表GPS定位智能手表学生儿童",
            price = 400,
            originPrice = 499,
            sale = 1,
            stocksCount = 2,
            commentsCount = 99
        ), Product(
            id = "1",
            title = "TCL 408升十字对开双开四开门智能一级能效风冷无霜大容量",
            price = 100,
            originPrice = 199,
            sale = 1,
            stocksCount = 2,
            commentsCount = 99
        ),
        Product(
            id = "1",
            title = "TCL 408升十字对开双开四开门智能一级能效风冷无霜大容量",
            price = 100,
            originPrice = 199,
            sale = 1,
            stocksCount = 2,
            commentsCount = 99
        )
    )
}